These configure actions above are all based on bash, how about useing reomte.RemoteFile class? Then we can get rid of bash.