UPF fix: closure is applied after recursive directory scanning, allows correct cache cleaning.

System version 0.281
modules:
Blogs 0.047
Comments 0.009
Cron 0.005
Feedback 0.001
HybridAuth 2.1.1-cs22
OAuth2 0.015
Plupload 1.5.7-cs4
Static_pages 0.027
plugins:
Admin_default_theme 0.003
TinyMCE 4.0.1-cs4