Take Gemfile.lock into account when resolving gems to copy.

Fix for issue #44.