installer: rework buildscript

Signed-off-by: Stephan Raue <stephan@openelec.tv>