Allow for setting the CVS_RSH environment variable

Cherry-picked the necessary changes for [issue 10791](http://projects.puppetlabs.com/issues/10791).

/cc @sodabrew