Need to ensure that bash is used rather than sh when bash is actually required. As not all systems use bash for /bin/sh, eg Ubuntu 8.0.4 LTS.
Should also check for POSIX compliance by using /bin/bash --posix.
This issue originally from OMII-UK internal issue 2971