replace run block for data capturing with capture method + make try_sudo work

- replaced the run blocks for data capturing with the capture method
- used sh -c around the try_sudo commands to make the the whole command
run by the sudo user and not only the part before the |
- used force delete to skip the 'remove write-protected regular file?'
question
Merge pull request #343 from daanporon/issue/337

database:dump:remote doesn't work