Fix `cylc submit` tests tidy logic