Listen to the lockfile

- Fixes #751