Add --port_file arg to write chosen port when '--port 0'