Fix up parent path handling for windows.