[PathList] Fix support for patterns ending with a slash.

See #859
[Installer] Respect config.clean?