Fix log path
diff --git a/turbo_hipster/lib/utils.py b/turbo_hipster/lib/utils.py
index 016c69c..5a0237d 100644
--- a/turbo_hipster/lib/utils.py
+++ b/turbo_hipster/lib/utils.py
@@ -214,7 +214,8 @@
     dest_file = os.path.join(dest_dir, dest_filename)
 
     shutil.copyfile(file_path, dest_file)
-    return local_config['prepend_url'] + os.path.join(dest_dir, dest_filename)
+    return local_config['prepend_url'] + os.path.join(job_log_dir,
+                                                      dest_filename)
 
 
 def scp_push_file(job_log_dir, file_path, local_config):
diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py b/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py
index d1dd283..544d16b 100644
--- a/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py
+++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py
@@ -264,7 +264,7 @@
                     'unique_id': self.job.unique,
                     'job_working_dir': os.path.join(
                         self.global_config['jobs_working_dir'],
-                        self.job.unique
+                        dataset['determined_path']
                     ),
                     'git_path': self.git_path,
                     'dbuser': dataset['config']['db_user'],