Improve version/modification date detection for situations when .git is not deployed.