Using when conditional with set_facts and with_items

Hello,

Using ansible v1.9.4, I am having an issue using set_facts if combining with_items and when conditional. I am tackling a new use case for our environment and have not tested with this any other version, since 1.9.4 is the production version.

When ‘when’ is not used, the ‘all_files’ fact lists the basename properly.

`