Some small issues when running the script on Linux

* Added +x to the script's flags
* Made it run with '/bin/bash' instead of '/bin/sh' since the latter failed to run on my machine.