Fix SQL directory path composition