Add a check-dependencies test before using go-ui

This stops the fatal if go-ui isn't loaded.