added check for nddata since it could be NULL
made ndmgm not add minor numbers to netdev device file names