Fix unbound variable by creating a wrapper function for Gentoo's emerge.