updated the startup script

updated the startup script , handled the case when a log directory might not exist.