Fixed bz2 AIP file extraction.

Added logic so files can be extracted from bz2-compressed AIPs.