only redirect stdout when building