bash redirection + sudo fix