This bit is a bit weird: it's not because we run from git that the file exists. We should test for existence of the file here too.