fixup prepare_port (transient port directory)