Add automatic version number.  Shell script improvements.