Moves cd into if statement so that second instance of mysql broker can start up.

[#60425858]