keep the original file's permission - fixes  #4