Fixed bug in --init; converted scripts from csh to sh.