submodule: clean up substitutions in script