Added commented out set -x line to allow for verbose logging. Also added portable shebang.