Added full path for chdir and fixed bytes sent with body.