Correctly handle relative tool and data directory paths during installation. Fixes #82