Use /bin/bash in shebang line.

Since this script uses bash-specific features that are not supported by Bourne shell, such as $() for command substitution, it's more appropriate to use /bin/bash in the shebang since not all environments link /bin/sh to bash.