Fix build bug: build now fails if unable to copy an executable