Add makefile rules to handle VERSION and HW_VERSION changing