Fixed bug: repeat build in Mac OS, change to check file ModTime instead of event time