Strip out most unused code in rbinstall.