Fix for sudo in file_upload

If you're in is_local mode, sudo() is called, but sudo is also passed in on kwargs. I assume this needs to be the global sudo.

This is an ugly fix but preserves the syntax of the function api.