ccanlint: don't crash if given bad directory name.