optionally take a new package name from the environment, extract the needed files from the packages