filelist_intersection: manually compare paths

Prevents the need to strdup or otherwise modify paths and lengths only
need to be calculated if the paths match.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>