Fix pty option setting in execute command