Fixed folder names hash function (Closes #348)