handle Windows directories better