Make sure both the path and indexed path are used to see if a module already exists in the cache. Fixes #62