fix build and update sdk
use pathos instead of deprecated Path