root check before updating script