Added +x to script, and made it run through bash (running with sh resulted in failures)