fix reading git remote URLs on Ruby 1.8.7
fix reading git remote URLs on Ruby 1.8.7

Strip extra whitespace in the end because URI.parse chokes on it.

Fixes #49, closes #50, closes #51

verylucky/git-deploy,mislav/git-deploy,andrey-str/git-deploy,verylucky/git-deploy,andrey-str/git-deploy,mislav/git-deploy,berfarah/git-deploy,berfarah/git-deploy