Detect flash_device only in main folders