Only replace paths in lines that look like stacktraces

- Fixes an issue when using the unit reporter
0.5.3