Non-smooth Bayesian Optimization in Tuning Problems