make shell scripts more portable

Hey so /bin/sh wasn't working for me on debian because the default shell isn't bash, and "source" was not recognized. I believe this is the canonical portable way to do bash scripts - it worked for me at least.