In the device section, avoid calling unlink() if the stat() failed.