Fix bug of wrong template for cmake files