[CMake] Fix 'touch' command: only in Release mode