tweak go-errcheck for non-interactive use and permit overwriting ignorepkg and ignore
fall back to default-directory if buffer-file-name is not set

This is mostly useful for dired buffers