Minor fix to set exe path from example app and also pin std::max instead of std::min.