refactored if statements for path and custom installs