Fix shell error in after_success