Fixes #661 - Don't hash directories named like a file