Updated shiny-server startup script

Updated shiny-server startup script
Fix the maint file deletion function