Knowing "where you are" is irrelevant. Iraq was invaded under the pretense of having weapons of mass destruction, so the rational thing to do is having them anyway, cause the US can bomb you anytime if you don't. Meanwhile, North Korea is 100% fine.
The Ayatollah wasn't killed, but Gaddafi and Hussein were, while the Kim family is still fine.
So from a regime leader point of view, it's better to have a nuclear weapon than not have it. For a member of the population it's probably a good idea to stay away from it.