Fixed issues related to daemon call from outside its dir