After a bit of research I found out that there already is an universal solution. It's called <em>xdg-open</em>. It is present in every Linux system with Firefox on board I have access to at this moment. So all you have to do is call:
<verbatim>
xdg-open
</verbatim>
And there you have my home site in your favorite browser ;)

If you still want some code that keeps falling back until it finds something I can just write that. But I personally don't believe that we need such boilerplate.