BUG: fix wrong usage of os.path.normpath

Its wrong usage of method. probably a typo.
Was brought from commit https://github.com/scipy/SciPyCentral/commit/1601a025072e375d288ce561904ffa5aaca7bc84