Fix scanning of status block in newer git versions
Add tree package to install script