Refs #9484 - Can't use context manager assert in older Python.
Merge branch 'bugfix/9484_maskfile_command_not_working_in_batch_mode' into develop