fixed #1144
fixing path resolution for plugins in production mode