added custom exception, fixed nbdiff running only from root