fix linker error
abort daemon if chdir fails