check cache permissions before including other files
Merge pull request #249 from ahilles107/check_cache_perms_before_installation

check cache permissions before including other files