Add support for gsed (osx)
Abort make-pdf on error
Do not feed book.tex into itself, use .tmp file
Add missing longtable package to latex preamble
Re-format longtable to fit into the page width

Thanks to asm89 and oscherler!
Merge pull request #55 from igorw/make-pdf-fix

Fixes for make-pdf script