added change directory to daemon scripts