Support `set -u` on init.sh and before-task.sh