Fix typo in wait_for_environments