Thank you for your pull request!
But this script is already dependent on bash, for example "[[ ]]" at L120.
So even if shebang is changed, it doesn't work well in some environment where 'sh' is not 'bash' alias.