Apply Takeshi Enomoto's patch for case of .mod files on OSX