Rewrite virtual env download and activation using tmp directory