Refactor: Download files into tmp dir, and move it after its complete