check if config dir(s) exist and create them before creating config file
Merge pull request #139 from aussielunix/Bug-initconfig-recursive-directory-create

check if config dir(s) exist and create them before creating config file