pymatcher: use os.path.basename to strip filename