Make FileStat more blob and submodule aware