Remove a race condition in the ci script