apply changes to avoid bashisms in Configure