Fix absolute path detection on windows