filter should compare directive uri to import.toString() (import is a Path)

imports is a Set<Path> so we either need to wrap d.uri in a new Path()
or compare each import.toString(); I opted for the latter for
performance; my last submit worked by coincidence but this is more
correct.