Use copy instead of template so it works for binary files