Improve ISE lookup in build script

Signed-off-by: Michael Buesch <m@bues.ch>