small fix to gather-cons script

on windows, mkdir was running the windows mkdir
instead of the mingw one