[release] Fixes setting of module path for installed package.

Previously the module path was a relative to the install
directory. With this patch the CMake package configuration file contains the
full path and the macros are found.
(cherry picked from commit 0abadd5a66140ecb9a5583c376bb9a0b09e64af2)