fixed Path.isdir()

was not working earlier (at least on windows)