Fix OSX .mod case handling