Fixed NullReferenceException when building projects with no project references

Fixed problem with the output directory not being created when building a project with no project references
Added support for including the version number in the output package file name, for parity with the nuget pack command