feat($directory-selection): allow directories to be selected when supported

closes #3