Fix uninstall command for some CMake versions