Modify the includedUis to store the path to the file which includes the ui file. Reuse that path to generate the output file from the uic process.