fix build.number: can not use imported macro in local macro definitions