Fix filtering during collection of paths in setup.py

Thanks Marek Brzóska for the report.