abort_packages_not_installed function

Throw error if required packages are not installed.