cmake: use CMakePackageConfigHelpers

 - dropped trash messages.
 - new algorythm to check for relative paths.