Fix failing on makedir in Windows