Re #6629. Add code to fix variables in installed properties file.

This is just a temporary fix to get things working again on an installed
Mantid. The MANTID_ROOT variable is redefined before the installed
Mantid.properties file is generated from the template, and so the variables
that depend on that need changing as well.