Fixes for sh instead of bash