Replace .rvmrc with .ruby-version
Upgrade RMagic to version that can be compiled these days
Clean up regexp
Fix ci.sh for .ruby-version