[INTERNAL] Changed the file handling if no reference files are specified.