Generating Project Files Crashes

I’m trying to generate the project files for the spine ue4 runtime and I am encountering a crash (logged below). I am unsure as if it is project related or UE4 related. Note I have tried to building the project on windows and was unable. But from the crash output here I am unsure if it is project related.

./GenerateProjectFiles.sh -project=/home/thomas/Documents/UnrealProjects/spine-ue4/SpineUE4.uproject -engine

Setting up Unreal Engine 4 project files...

+ xbuild Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.5 /p:Configuration=Development
+ mono Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=/home/thomas/Documents/UnrealProjects/spine-ue4/SpineUE4.uproject -engine
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Writing project files... 92%
ERROR: UnrealBuildTool Exception: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
       Parameter name: startIndex
         at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x00037] in <8f2c484307284b51944a1a13a14c0266>:0 
         at System.String.Substring (System.Int32 startIndex) [0x00008] in <8f2c484307284b51944a1a13a14c0266>:0 
         at UnrealBuildTool.CodeLiteProject.WriteProjectFile (System.Collections.Generic.List`1[T] InPlatforms, System.Collections.Generic.List`1[T] InConfigurations) [0x0021e] in <08084c4db6d641709c3e7a4740da8657>:0 
         at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles () [0x00031] in <08084c4db6d641709c3e7a4740da8657>:0 
         at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles (System.String[] Arguments) [0x00bc2] in <08084c4db6d641709c3e7a4740da8657>:0 
         at UnrealBuildTool.UnrealBuildTool.GuardedMain (System.String[] Arguments) [0x00f0f] in <08084c4db6d641709c3e7a4740da8657>:0

I would also like to ask which command is used to build the binaries for the project from command line, but if needed I can put in another post.