Error fix by autocreating directories, config separation for easier updating