Fixed 'access denied' issue by passing file in over pipe.
Removed .rvmrc and added .ruby-version as per more recent rvm installations.