Fix relative path key derivation

When getting a relative path, recurse without the relative flag, since the absolute path is provided in the recursion call.