[branding] fix pre/post scripts.