Handle filenames with no full path for load data relative to directory
If the filename in the state file doesn't have a full path but only contains the file name, loading the state file with 'Search files under specified directory' mode would fail. This change allows it to handle this case.