Dont lock commented gems

- skipping commented lines
- check for Gemfile existence before locking