Use bash instead of sh since script contains a lot of bashims.