Fixed file path detection in Windows.