mfs: Call build hooks at other defined points of build process