cat: use optional output port even when first argument is a port