Updated script. Lots of libs are installed before instaling rvm