Wait for ports to become available in travis