bugfix: local variable 'dst_path' referenced before assignment