Only allow 'this' or '..' to lead a path

Paths like 'outer/../key' raise an exception when compiling.