makemetadata: add dependency check