Fixed small regression from 51aa000378.

A test failed if the path to the Django checkout contained a dot.

Refs #20485.