Fix order of commands so redirects work.

Authored by woltherav on Jan 30 2020, 2:40 PM.