Optimize util_get_pin from #289

fixes problems with dnie-tool documentation