Shouldn't try to rewrite non-top-level paths
When doing package based location, still search for definition files