made sed commands platform independent, flag adds extra options for macOS
made sed commands platform independent, flag adds extra options for macOS

Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared