Fix #17: updated git plugin to 2.3.1 (as a consequence, minimum supported version of Jenkins is now 1.568) and used git data to detect proper build