Fix bug introduced in previous refactoring

- function R misbehaved when called as RR for remote root access, trying to run the
  hostname also command on the remote machine.