Function to concatenate paths
Function to concatenate paths. Merging