Fix local script not working without host port set

Local command formatting sets port to 0 if not explicitly defined with host. This adds a default port which is only used for local commands.