Check if the used directory exists before trying to add a validator. Refs #245. This was SVN commit r16773.