Strip all parent paths from fatal errors

Fixes #1997