Looking at #900; the unconditional directory change on startup is "bad" because it only happens on Windows. This commit removes it and instead puts the logic into the pty layer to match the unix behavior. The behavior is: * If the command specifies the cwd, use that. * Otherwise, use the home directory