fix perl shebang
switch to bash 'strict mode'

http://redsymbol.net/articles/unofficial-bash-strict-mode/