Fix for Find modules on Sabayon Linux.
Better loops.
See http://linuxpoison.blogspot.it/2012/08/bash-script-how-read-file-line-by-line.html
Merge pull request #1 from KingDuckZ/master

Build fix on Sabayon and improved bash script