Make the script portable.

Allows you to run it in any OS that puts python in dumb places. Does not prove that it'll work on Windows/Mac OSX yet.
Merge pull request #2 from MartiUK/master

Make the script portable.