Replace environment variables.