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

- See #529
Fix failing lockfile scenario