Check if we need to reinstall dependencies before doing so