made bash more os indep