Extract file request: improve handling of uncompressed packages

* Explicitly ask if the package is not compressed before trying to
  serve a local file
* Return a 404 if the requested file is not present from an
  uncompressed AIP
* Return a 501 if the package is compressed and cannot be uncompressed