Build fix on Sabayon and improved bash script

There is a fix for the Find*.cmake modules on the latest Sabayon (as of now).
The improved clic_update.sh should be able to deal with files with whitespaces in their path. Please refer to the link in the commit's comment for a comparison of the different ways of looping over lines in bash.