Fix copy target for release build