fix a HUGE bug in dependency checks

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>