fixes in windll and path_getdir