Fix file being passed to plugins.renamer.scan

Handle a file being passed to scan instead of a folder. This fixes some
other plugins that only pass a single file, such as the transmission torrent
plugin with torrents not in a directory.