Reinstate C _scandir module and fix variable name.