bash update: compatible to OS X.