added sudo to minion_id file writes