Test in PHP 5.5
Improve error checking when extracting localversion
DRY up getting cache path in unit tests