Check for source directory when merging