Do basic error checking in "tg depend add"