Date/revision stamp only done when there are none

First check if there are stamps, then try to add them from Git repository. If we are then not in the correct Git folder, the whole procedure will fails, instead of attempting to install as if it was a downloaded source (as it used to do before).