gst-env: Allow setting environment without git
This is needed to use gst-uninstalled mode over NFS when gst-build is a worktree. When this is the case, the .git is a file that links to the original git tree, but this tree is unlikely to be visible over NFS. Instead of forcing NFS contorsion, simply ignore the error.