Improve the logic for checking requirements on startup