fix escaping in rvmrc templates, fix #3228