Config directory support.

Resolves #742.