Fix checking of dependency names. Fixes #20.