ctdb-scripts: Simplify TCP port checking