reworked logic sending build number to plugins