updated module making script to work if run from etc/script, and added sed changes needed on mac
updated module making script to work if run from etc/script, and added sed changes needed on mac

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