Desbashification of scripts
genfiles.sh: Minor chages