dtc: cleanup pkg checking

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>