match file extensions when sending queries to libgen