Problem writing config attributes from script