Fixed determination of version during of build