Correct require.js invalid path bug