Crash when repo directory doesn't exist. Fix it.