changed normpath to normcase

normcase is safer than normpath as normpath [may change the meaning of a path that contains symbolic links](https://docs.python.org/2/library/os.path.html)