simplified plugin registration by reading gemspec info and simplified dependenccy check code by reusing bundler code.