utils: Add diagnostic script