convert to $run_userscript_flag to lowercase before test