use bundled fnmatch implementation if fnmatch is not found in the build environment

Signed-off-by: Masatake YAMATO <yamato@redhat.com>