Added function that remove ReadOnly flag from temp dir