check last modified with beam file

Hi rustyio,

I found a problem with sync. The module loaded after sync started will be recompiled even it is already compiled. I add some lines to check with beam file when sync find new src file.