Simplify relative path resolution for $this and $parent