core: fix detection of guile in configure