- fixed a bug in torrent creation caused by re-used variable name "dir_path"