Only write to merged file if it can find the match