BTW, proper workaround is to change the script and not to globally replace /bin/sh with /bin/bash (as mentioned in above comment).
BTW, proper workaround is to change the script and not to globally replace /bin/sh with /bin/bash (as mentioned in above comment).