Bring `HAS_PORTAGE` to global scope, wrongly removed(by me).