Fixes a bug in how the 'field' flag is handled (it needed to be added to the list that could
appear either before or after the 'hw_id' flag in the calls to 'get_all_nodes')