Some custom changes
Update pdf generation script to run on OSX