Fixed bug where file would not be imported unless folder was selected