mr: Add environment variable to check()