Convert FileFsFile to canonical paths

Fixes multiple inclusions of res/ directories with transitive
libraries.

This also required making ResourcePaths’s equals and hashcode methods
null safe.