check_packages_installed function

Check that packages are installed, without loading them