Some fixes to convert.py regarding TDirectory