Fixed building of client.
Refactoring: Defined new type cabalinstall and enabled detection of installed versions.