Double == causes error on travis (dash shell)
Merge pull request #380 from koenpunt/fix-current-test

Double == causes error on travis (dash shell)
Extended version comparison, now also compatible with zsh
Some more compatibility with zsh
Prepend a v for version numbers if its not already there