Replaced check for OS X with existing maid function