Check if the file exists
Check if platex exists
Check if the source file exists