modify tws_cmr.rb to prevent error of require_relative in TP