IMPL: use GIT_DIR
FIXUP: some validation

it should be used both in Linux and Windows... better be safe