Added double quotes to paths in concat command, so that it does not fail when path of target file contains some blanks.