did you have :sudo set?  the reason for fetching :sudo instead of just executing it is that you may have overridden :sudo to something like
```
set :sudo, "sudo -i"
```
in order to have sudo simulate shell login in order to pick up necessary .profile, etc...