making concenate function work with files with paths