Added dependency checking logic and the ability to require rubygems with a Gemfile