Only ask for diagnostics at first install and if heap is not sufficient.

This (is a re-hash of and) closes #598.