check if file is defined before checking if it exists.
Removed useless latex manual.