In daemon, set PATH, SHELL and LANG environment variables.