sensible changes to makepdf.sh