Refresh caches more frequently; fix env for Ruby submissions.