comparing -package:base-prelude package:directory-tree

a compare function that ignores the free "file" type variable: