some suggestion from liu yuncheng

The default sh of ubuntu's was linked to dash. This script didn't work well with dash