changing dir handling for windows