added tests that detect problems with installation path extraction (#1)
fixed installation path detection (#1)
refactoring: extracted methods