chown the cache
destroy the cache if build fails
1.0.3