Fix startup script loading
Ensure startup script always runs by the correct order.