Fixes #18. Issue with localhost being passed to remote instances.
Merge pull request #19 from alexisabril/master

Issue 18