Allow for xTools mode when generating CMS path
Improve permission when writing configs