refactored a little bit to use a new ProjectFile class
Fixed a bug in the Gemfile.lock deletion logic