Fixed permission mismatch for copied files