chdir, exit from fork on failure