path.parent() should return an empty path if this is the root element