Use bash instead of sh, since sh does not work