fixup prepare_port (follow-up to transient port dir)