do not ignore return value of std::system
[style] avoid dangling else