FIX: remove bashisms