fix for running shell method on solaris (#1)