configure: Fixed check for AM_PATH_LIBCCRYPT