optionally use environment variable to find libarchive
do it in just scala