Migrates to bash syntax and checks it with `bash -n`