Fixed SSH to properly parse locations. Added test for this.