fixes #8 fixes #6 open folder can now open displayed dir if none are sel...

...ected and selecting a file adds the file name to the file path
Why are we checking this way? Is it because `openDirectories` can be something else other than `true` || `false`?