BRANCH 4.2-DEV: replaced os.mkdir with os.makedirs