Last input file automatically detected