Fix file path for daemon