Preventing error "/bin/bash: exit 0: No such file or directory"