Clean directory path.