include both the referenced build and the latest build in cache key
Merge pull request #2001 from dimagi/app-caching-fix

include both the referenced build and the latest build in cache key