Look for master XCF document of file being opened, and open it instead if exists.
Auxiliary function to read XCF layers, depends on xcfinfo.