add eudev auto-detection

The detection code for eudev was missing, so I've added it. I was not sure whether to make a full if-statement from it or leave it in its short form, feel free to correct me.