chg: check file changes before compiling again