Validate DOS path before returning

And some other minor refactors which address more review comments.
73b9f65746Jakub Konka committed on 8/10/2020, 2:39:02 PMparentcd8e6b6
1 file changedLine totals unavailable