Fix #861: configure.sh fails on Mac OS X

https://github.com/OpenBazaar/OpenBazaar/issues/861 

This updated configure.sh works on macs, both on fresh installs and on upgrades from the last release.

Sure will take a look at what previous commits since last release may have affected this