In wasm build process, the path of runtimeconfig.json file was generated based the location of the main app assembly. This would work with the assumption that runtimeconfig.json file lived in the same folder as the main app assembly file. This assumption was broken when enabling IL trim by default for wasm apps in my PR (#90436). When the main app assembly file gets trimmed, the newly generated trimmed assembly lives in a separated directory than the runtimeconfig.json file. We need a more robust way of finding runtimeconfig.json file.