name bash as dependency. fix sed on bsd systems. add missing default thread value