fix execution from install tree

A previous commit changed discoverHomeDirectory() so that it would
work from a binary tree.  This inadvertently broke the install tree
case.  This commit makes it so this function returns the correct
value for both the build tree & install tree cases.
Merge branch 'fix_install_tree'

* fix_install_tree:
  fix execution from install tree