I beleived this $_ENV['AH_SITE_ENVIRONMENT'] only determines the environment and not the different sites of a multisite setup. Any suggestion is much appreciated.