Don't deploy pull-request branches to Sonatype
Make Maven deploy script work with POSIX shell.
Fix yet another POSIX shell issue.