export back-ends: Fix subtree export with a relative path