fixed a bug in the build system and made install paths relative again