write device descriptor to file only if it's not already there