Take version from package.json also when there's no .git directory (source releases)
Merge pull request #1988 from Ferk/master

Fix for source tarballs error on 'set-version' (not a git repository)