Fix copyTree to duplicate file modes

Also fixed up MockFS handling of file modes so that I could test it :)