[LINUX] launcher: Minor fixes in the `on_substitution` handler code