Fix problems with error display and .ipkg

Filenames for displaying errors were being incorrectly computed,
resulting in missing errors and misdirected hop-to-source links.