Fixes jrburke/r.js#591: resolve modules IDs in a package that end in .js without the .js