Cleaned up the shell scripts.  Removed deprecated calls and syntax.