[sock] adding state_path method
Fix os_type bug in cli