trying logic suggested for process_args on solaris