Make File.dereference dereference links relative to self.parent instead of self

Fixes #2