You need to check the `use_prefix` attribute before adding the environment name.