Under Linux there was no way to choose a directory. Made a hack - when user selects a file inside a directory, the directory is selected instead.

Also, setting custom output location now actually works.