recursive fix

Files with deep folder estruture were not been created. Not it first
checas for a folder stat, create if needed and then run the imagemin
task on file.