Fix log file issue due to env var