added code from scsidev 2.37
fixed minor device number generation
fiddling with gitattributes