Small refactor to install.py, no new functionality

Small reduction in the lines of code. Should be easier to add new simple commands without duplicating the call to a method on the environment object.