Improvements on tab completion

These are some improvements to tab complete, mostly for use in move_torrent (I did not think of using it there when I submitted the last pull request)