Pass the mode into make-example

This now produces builds that work locally but don't when uploaded. Why?
Possible fix for gh-pages issue
Recompile