Fix for $script_name in flush($script_name)
Merge pull request #2 from Sannis/patch-1

Fix for $script_name in flush($script_name)