The 'downloadFiles' procedure should extract options before doing any other significant work. Also, verify the OpenPGP signature for all downloaded manifests used to automatically detect the platform of a package.