fixed the startup script generation