Add test for path exists for --nogit option