genfiles.sh, uploadfiles.sh: Minor changes