use printf tto output command argument for run_erl properly
split cookie and name arguments
quote more variables