build: fix for finding and handling ICE 3.5 or 3.4