Additional back compatibility check to avoid errors if annotation_dir argument not present  #321