Create config dir if it is missing

Closes issue #1.