Handle perls with DynaLoader::mod2fname

This is practically the same fix as in M:B