Rewrite scripts for /bin/bash