clean the dir path