Fix issue 41 (installation prefix overwritten) on Linux and Mac. Not fixed yet on Windows.