Package: don't try to call methods on None pointer_file_location
Package.extract_file: determine basename using lsar

Fixes #6764.