Fix decode torrent data from string

"is_dir and is_file checks now fail silently in order to decode string instead of file"

I needed this to decode a torrent file without writing it ti disk.