Checking to make sure package dependencies are installed first.