Cleaned up failure error return.
Added in #!/bin/bash to those that didn't have it.