Properly check for before_script key.