Check for directories in 'first' and 'last' merges
Use platform line separator when writing configuration