Prevent logging fault when application is not run from absolute path.
(cherry picked from commit 246114bc09de10b0738ac06b8652dcc17e36cea1)