Fix dependency checking.