Include actual environment variables in substitution logic.