Mark std.file.isDir and its unittest as safe
Merge pull request #2517 from tom-tan/safe-file-isDir

Mark std.file.isDir and its unittest as safe