Fixed handling of spaces in folder selection.