This is a project written in Java that will help you make it easier to find your installation home directory.
I have at least at two different jobs had to solve this "problem".
Hope it can help anyone else. At least now I know where to find the code the next time the problem arises :-)
Checkout the wiki for information on how to use this lib.