issue #4020: Updates before-install.sh. and comment fix in generate-cocosfiles.sh.