Fixes #228 - HTTP_HOST not found

Do not try to get `current url` when it's called from CLI. Fixes #228