main: move creating digest for local file

- Added FIXME for using '/dev/null' when creating a 'stat' object for
  a non-existent local file, this will break under Windows
stat_local: handle undef from getpwuid/getgrgid; fixes #36