Simplified the _tuple function.
Improved check for invalid build names.