Fix thumbnails cleaning when no cache dir exist
Add Symfony 2.3 compatibility