added generic log and backup directories to SandD.php