fix echo errors in script files