cmake: move rpath handling to correct position

Otherwise the rpath was set incorrectly with the defaul installation path