Fetch files through slurp when sudo is required

This commit adds handling of sudo failues. However, keep in mind that
if the non-sudo user has read permissions on the file to be fetched,
sudo won't be used so invalid sudo users will not produce any error.