Remove bashisms and references to /bin/bash