change build scirpt, supply after-install and before-remove