clean directory path