Expand environment variables in log file path