changed shell to support echo -n on all platforms