Added arch to download URL for linux.
Set the download URL only when required, and check for URL set before downloading.