optimize auto create DIR function,little change on besdirac-dms-add-files.py