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.