OS X: Fix installer creation

The script should know independently of the machine