generate app string from GetAppName(), fix SetEnv to actually set the env instead of just echoing