Fix support .0 releases.

0 is defined as empty so releases like 7.x-1.0 would cause an exception to be thrown.
Merge pull request #34 from kasperg/support-.0-releases

Fix support .0 releases.