link gem only when not already available, fix #2586, also small cleaning
do not check libffi-devel on Redhat 6+ if not available, fix #2583
make sure proper ruby path is passed to rubygems_setup, fix #2586
use newer version of rvm gem
break long line in __rvm_initial_gemsets_create