Fix erroneous OS detection for installation in OS X.