Fix for $script_name in flush($script_name)