- detect presence of remsh and use it instead of rsh