Try to fix the erratic bug on directory deletion in CommandFileTest