modernize ssh watchfile