replace `.` with `source` in shell scripts for compatibility; change `sh` shebangs to use bash instead