buildscript: fix module rebuild bug.