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.
Tearoff now uses work-tree magic instead of file copy.
Tearoff uses work-tree magic to update local version.
And apply uses work-tree magic.