version 1.27 fixes for set-torrent-handler/pathname

The pathname case of set-torrent-handler now works.