Updated environment health check.

- Making sure the environment to which a new version has been deployed
  is actually ready and healthy before swapping it in as the active one.