Fixed checking of URL whether they exist or not (non-trivial as github opens fine, but returns an HTML file with an error message).
updates