Refactored the Installer class and DependencyCheck