Fixed host function checking if exists SERVER_PORT (not exists in cli execution)