start-cluster: fix checking for used ports
start-cluster: fix checking for used ports

Controller ports were being allocated before ports used by other
components were determined, causing clashes.

cedadev/ipython_project