modify red script for more comprehensive arg handling

take advantage of the erlang `-extra' arg to allow arbitrary input
to the red script