Don't try to read git commit id if not in a git folder

The check for git folder was in the wrong method
Ignore missing files to be zipped