Fixed custom path resolver in Require.js plugin

Updated RegExp indexes in `resolveName` function to properly resolve modules with custom paths.