Fix build for certain BSD systems

* BSD's don't have bash in this location. /bin/sh works here perfectly.
* BSD's have GNU make as gmake. Test for it and use it accordingly.
Merge pull request #117 from mneumann/master

Fix build for certain BSD systems