Fix node detection on debian

Fixes issue #422