castagna makes script.sh more generic and portable.