Creating a distro target which will create the distribution package
Bumping version to 3.1.0
Using strbuf instead of strdup as strdup is not cross-platform

This was causing a bug which took varnamproject.com down because of a
segfault. strdup was returning incorrect address