Is this comment still correct?  It looks like the AIP filename is being set to the uncompressed location, which is the folder the bagged (but not yet compressed) AIP is in.