spec: fix bashisms in post script