more scripting changes needed to work on ubuntu 12.04 -- i will issue a pull request against yours