it is foobar.tex and not foobar.tex, thanks to Jens Heidrich