Correct os.makedir to allow it compatible with python3.1