Added folder selection dialog and corrected file searching based on folder selection dialog