The newlines from portageq must be chomped for successful -d filetest. Patch attached.
Created attachment 9517 [details, diff] Add chomp for vars from portageq
Fixed in cvs. Thanks.
>=portage-2.0.48_pre3