adding some startup checks to avoid starting without being built, or in the event of the requested nginx port being in use