Restore platform specificity to /var/cache paths
Fix string vs. array detection on Ruby 1.8.7