attempting to make the version-tracking a bit more reliable and portable