in windows dirname(none) raises TypeError, not AttributeError