Refs #3424 - Remove exclusion of cygwin, fix a wrong insertion of stringtemplate condition and factorize a variable initialization