Fixes to a default install from scratch.

 - Only sanity-check SAN dir if set, set it to nothing by default.
 - Fix pidimages stray /
 - Fix default yamdi path in Debian/Ubuntu
 - Set the template compile path to the default setup checks for
 - Fix commenting in the upgrade script so it passes