deploy:update_code rolling back is not sudo aware and fails

When an error appears in the deploy:update_code task, the rollback fails if permissions & ownership on the directories/files is different due to set permissions with sudo in previous tasks.