Check required packages properly