module: normalize path when computing cache key.

When adding a new module to the cache, and also when querying the cache,
normalize the path so that modules don't get loaded more than once when
they are referenced by the same file name but with different case.

Tested on Windows, Ubuntu 12.04, MacOS X and SmartOS.

Fixes #7031.