init: Do not segfault on big GIT_TEMPLATE_DIR environment variable