fixed FileNotFound when no commit exists