kbuild: factor out the common installation code into scripts/install.sh