Only replace leaf values with environment variables.