Add EPEL repo, fix check loginc for rvm installation.