Fix install root
pkg build bug fixes