Fix typo in autoload cookie
Make file list expansion a public function, and adjust package-build-archive API

See #1274