Correcting some small bugs in startup scripts