updated list_ports_up(), the only function which calls mc, to use the parent instance's _{base,container}_directory