try "before-script" instead of "before-install"