I would suggest to use @PATCH_EXECUTABLE@ here and configure with @ONLY 

I think it can be confusing to have some sh semantics within a batch file. @...@ indicates clearly, that it is cmake related