[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 8cf737cd3e52d38e6de9a4cbf919a6420f65c54b)