Fix missing endif()
configure_package_config_file requires absolute paths for PATH_VARS