Remove any nil entries, e.g. empty arrays, unspecified parameters, etc.
Don't use facter, it was slow (~ 0.5s just to get logical processor count).