move gem pristine to before_script hook