Fixed calling of sub-makefiles with flags