Added support for log-bin dir.  Added extra checks for invalid and valid subdirectory configs.