defaults to using sel.config env over os.environment for purge and hgtool