fixed sudo write minion file