Fix bug when using `--pdf` without `-o`

When not using `-o` the script will send the output to the screen
and because of it will not be possible to run LaTeX to produce the
PDF.

This fix this bug testing if both flags was set up.
Merge pull request #35 from r-gaia-cs/bug

Fix `--pdf`