Removing a redundant stat() call with 'deps' and 'restat = 1'
minor: removing noop call to MarkDirty(), fixing comment
Merge pull request #624 from nico/landmaxim

Land the first two commits of pull request #608.