Fix for source tarballs set-version error

Currently the source tarballs offered fail to build since the set-version task wants to obtain the version number using git revision.
This fix attempts to avoid this, using the package.json version when no .git directory is found in the root of the sources.