use /bin/bash instead of /bin/sh