fix LogPathPrefix

Fixes #6903