fixes for migration to managed linux - timthumb handler and cache directory were not working correctly in CentOS.