Use "set -e" command instead of "#! /bin/sh -e" magic.