add util.make_dir() and its auxiliary local functions
replace os.execute('mkdir -p DIR') with util.make_dir(DIR)

The problem was that 'mkdir -p' is not available on Windows.