Add optional second argument $opts, $opts->{all} returns all found path (test in a separate commit)