os-specific instructions, because OSX's file utility is crippled