Bugfix for writing final petabricks configuration