fixed copy file/directory