Change path parsing method to account for different types of file paths needed