Add in shebangs
Can't use the same bash substitution on OSX as we can on linux, use sed instead