[FIX] fixed issue when writing config to nonexisting dir