#1640: Rewrite file usage finding function to take a node instead of a file.