Fixed string handling in cmake script