Fix before-install script