Log on stdout if we don't have access to the log file

In case the log file cannot be accessed we don't loose logs.
This is useful in test mode running as normal user.