DetailsDialog: Track the legacy paths

Hello, some devices are using legacy path for sdcard. So if we run "ls sdpath/0/filename" the results will be a "no file found". Instead, if we replace 0 with legacy it will find the right file!