Refs #8270 Correct function and add comment.
Merge branch 'bugfix/8270_bayes_dir_path_crash' into develop