Common.System: factored out parts from Common.File