Simplify convertRelativePath