pmdinfogen: allow using stdin and stdout