pts-core: Fix regex for version string
pts-core: Fix test profile writer bug noted by Stefan Doesinger when using 0 as a value in a test option