smartcd: added dependency check