Added a check to pathutil to see if a path is an sgf path