add depth parameter to relativePath operator

doesn't make sense to just have it for absolutePath.