Fix bug in dependency checking.

Auditors: markcc