Improve tmp dir names
fixup! Refactor file copying and caching
Refactor deploying