bug fix to normalize the path when copy files.