Make the startup scripts more POSIXly correct