Only set the path option if it existed when parsing a legacy lockfile

- See #529

The solution in #529 actually introduces a small bug. This avoids said bug.