Ensure npmInstall and build are run before the existence of an open port is checked