--esredir processes early (in macro stage)

Signed-off-by: nixnodes <code@nixnodes.net>