Fixes #228 - HTTP_HOST not found

Do not try to get `current url` when it's called from CLI. Fixes #228
Merge pull request #366 from borNfreee/patch-1

Fixes #228 - HTTP_HOST not found