Fix file writing in ACD to SADL conversion