Fix next_unused_port already bin detection