dependency is not a wildcard. Related: #110 Also fixes treatment for self-dependencies in wildcards (closes #111).