Revert commit to use AC_PATH_PROG instead of 'which' (fixes