Add missing popd output redirection