Fixes #18. Issue with localhost being passed to remote instances.