Fixed mergeDirectory paths