RequireJs plugin changes for better shim and allow custom configurations, and external paths