Fix install script for OSX

This change makes the install script work on OSX. I was also getting the 32bit mongodb on Xubuntu 64bit, fixed that too.