Fixes #1649. Adds exclusion rules into SHA-1 of minigraph path

Fixes #1649.