Use shebang with /bin/sh and add set -eu protection