Refactored dir_validate() to use new logging scheme.  Color coding for logs related to critical errors changed from red to magenta.