Prevent different git references from being cached under the same folder

Hello,

When installing packages from _git://…#tag_ urls, you can't update the the package without manually clearing the cache – the cached path doesn't take the reference into account.

I've created [a pull request for npm-cache-filename](https://github.com/npm/npm-cache-filename/pull/1) as well.

Cheers