Fixed errors when double clicking .command file in osx