Fixed nbdiff running outside git tree

#218