fix problem with cmake version and String REPLACE