There is a 2.1 vesion of the script posted here
Unless there was another change between 2.1 and 2.2, which could happen but seems unlikely, the 2.1 script should work.