Fix Darwin/OSX check on install hook