ECMUninstallTarget: port generated code away from deprecated exec_program
CMake since 3.28 warns by log noise about the use of exec_program which was deprecated for CMake 3.0, in favour of execute_process. So things got very spammy on a "make uninstall" (reminder, KDECMakeSettings pulls in ECMUninstallTarget).
See also https://cmake.org/cmake/help/latest/policy/CMP0153.html
Edit: also drop unused OUTPUT_VARIABLE arg while touching.
PS: Would also backport to KF5 once approved.
Edited by Friedrich W. H. Kossebau