fixed `diff` bug with try::file and directories