[ET Trac] #2506: avoid using system("mkdir") in favor of Python code