Don't refer to /bin/sh anymore - refer to /bin/bash in the shebang.
This was discovered when moving my dotfiles to Debian. /bin/sh uses dash, which doesn't have the same syntax as Bash.