add in root and check command

I don't understand this message. Is this an instruction to the user? Is this if branch missing ``os.setenv(...)`` ?