fix bashisms