Added simple handling of 'directory not found' errors.