gitk: be prepared to be run in a bare repository