This would also ensure that the prefix ends with a forward slash. Of course, the `10` value would have to be replaced with a `strlen(GIT_REFS_HEADS_DIR)`