Fix error when loading libraries out of order

Chef loads libraries in hash order so can't be certain which order they are evaluated.  This change reflects an earlier commit to discovery.rb which is also required in discovery_lol.rb