[GS] Replacement of command "rm" by CMake command for multiple platforms