fixed up it case that failed on linux
added support for disabling, controlling whether an artifact is attached, and providing additional arbritrary variables to generate headerfile