Bugfix: added environment variables for daemon