Make sure the log file is always opened before root privileges (if any)