Added error handling and recognition for chdir.  Added special formatting to shell error messages.