fix relative path detection on win