Replace environment variables in log file name spec