fix CMAKE_PREFIX_PATH handling (regression of cbfdf8a387f8101d2a2ef777944f65276a0a5a79)