Update all concatenateDirectory() function