Lock files locally, fixes #3.