Fixed nonexistent call to os.mkdirs