Skip 'thor' loading if it is already loaded
Display warning if graphviz gem is not installed. Fixes #2435
load graphviz gem before rubygems is unloaded