Refactor wp-cli installer, close #71