[Issue #1322] Fixing race condition related to moving download from temporary path