Updated production environment detect