Removes redundant if statements in UrlDownloader.

## Purpose
To remove redundant if statements which should be removed in #444 . `Utils::system` method throws an exception if command fails, so there is no need to throw an exception after calling `Utils::system`.