Changed path parsing to work with backslashes on Windows