Handy script for permission/cache problems.