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