clean path and file names