Added version detection. The test class embeds that version information into its output files.