Hash folder names in a case sensitive way. Solves issue 132.

Hello,

This solves issue 132 that I reported. I don't think it introduces new bugs, but please check.