Fixed bug in github release script where check on repository name was done before it was determined.