Fix mismerge of mode_standalone.cpp

@runrevmark's  changes from @46a726cd0b3a8e28cf48b79b67b5fcaa1374eff7 seem to have gone missing from the 7.0 branch.