Support varnish and fix rvm usage