Add check for Win32 and if found, use short path names when opening
templates in populate_template method. This check may be required
elsewhere