Skip bundle install when the Gemfile.lock is not modified

This patch will check if the `Gemfile.lock` file was modified and if not, then the `bundle install` part is skipped entirely. This will improve speed of the Ruby application build.