strip comments from .rvmrc file before parsing version

reworked patch from #31