Ensure tmp/cache exists

Fixes build failures on travis-ci because the tmp/cache folder sometimes doesn't exist.