Fix syntax error as well, and add she-bang to bash