The file is obviously not "not found", but it turned out that upgrade-hw.sh had recently been imbued with DOS-type line endings (which affected every line including the first one with the shebang "#!/bin/bash") and it was, in fact, the "/bin/bash^M" program that could not be found!