If you ever get a bad interpreter error while trying to run a bash script it might be because someone edited it in windows. Running dos2unix on the file might solve the problem.
Ran into this problem today, when a coworker emailed me a bunch of scripts and they would not work. They worked fine on the coworkers machine. Apparently the email went through an exchange server, which worked its magic on the scripts, rendering them incomprehensible to bash. Running dos2unix fixed the problem.