Minor fixes to error handling in make_DirEntry()