Add license information headers
Reuse the dependency checking code from phialup.sh