Smarter local ID detection.
- Resolves VUFIND-1003.