Fix issue with using the wrong filepath for parsing a local file