Why not simply move the redirection to the end of the line, where any sane command would put it anyway ?