More changes to allow basic bash operation in OS X