Refactored powerline install and update