Add implementation of os.makedirs() that works in Py2.7 too