Move 'kpm restore' into build.sh