Stash changes before taking timestamp

Otherwise for modules which changes their own sources
on build, we will rebuild even if there wasn't real
changes.