Fixed permission bug for writing new apt repos