fixed random corrupt cached package errors due to global variable expectedHash
Merge pull request #42 from kleini/corrupt

fixed random corrupt cached package errors