HPCC-9984 Compile direct from a version control system

Add support for bare repositories into the git file reader.

Note that this change means that the {branch} part of the git file
name is no longer optional. To refer to HEAD (on a non-bare repository)
you can use {}

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>