[mlaunch] Fix check_port_availability