Added parameter "host" for correct generating of url`s if script runs from the command line.
Merge pull request #6 from stnw/master

Parameter "host"  if script runs from command line