Moved depend_check to utils.py.