fix path detection for windows