Open directory from command line
Using the "Ctrl + O" dialog, a user can open files and directories, provided that there is a suitable plugin (reader).
However, on command line, only paths to files were allowed. This was an artificial limitation and this commit removes it by supporting directories too.