Add directory change to system call.