fix tmp dir command bugs
fix tmp dir command bugs

specter119/custodian,materialsproject/custodian,specter119/custodian,xhqu1981/custodian,materialsproject/custodian,specter119/custodian,davidwaroquiers/custodian,alberthxf/custodian,materialsproject/custodian