Add EOF newlines to suppress llvm warnings.
Support auto guiding without editing preview.sh. Fixes #23.