More BSD support in shell scripts. Though release_sync.sh still relies on bash.
Merge pull request #25 from fleximus/master

More BSD support in shell scripts. Though release_sync.sh still relies o...