fix Issue 11434: std.file.copy doesn't preserve file attributes (eg: executable mode etc)