[configure] Factor out couple of duplicated AC_PATH_PROG calls
Merge pull request #254 from knocte/minor

[configure] Factor out couple of duplicated AC_PATH_PROG calls