fix the shell script
remove the 'test' option
re-arrange things and implement some error handling
bump versions and repack