Fix ssh-upload for no-sudo case