check return value of syscall.Chdir when changing working directory