fix version.properties mechanism in build and resource leak in m.u.Version