Fixed AIP search file download issue.

refs #5859

Fixed an issue in the AIP search where attempting to view/download files from
AIPs compressed with BZ2 didn't work (and the relative path calculation logic
was wrong).
Fixed issue in AIP search with relative path for files in BZ2-compressed files being wrong.