Simplifying loading of Gemfile.local and plugin Gemfiles

The proposed changes reduce code duplication and remove a feature (debug logging) which was probably never used.