moves `exec_command` from transfer.rb to util.rb becuase of visibility of method