Why not using /bin/sh? Didn't saw a bash specific tool (except the function syntax which is easy to convert). And if you really want to use bash, please use #!/usr/bin/env bash so that it is more compatible.
I've pushed the change to use /usr/bin/env bash :-)
Presuming env is in /usr/bin, thus obviating the compatible argument somewhat.