Made a fix for parent on windows file paths

After an discussion with @jurgenvinju and @ashimshahi