added a command to write header manually
changed shell script header to allow /usr/local/bin/bash.