[PATCH v2 13/32] Split checking for root from dropping root privilege