Fix to use optioons correctly.
Add chownto user for config dir.
mkdir for config directory.