Update cp.rb to rescue checkin bad file error