core: avoid duplicate entries in site config.

Resulting from parsing multiple files in the site's config.d directory.

Fixes #648.