Changed update script to be cross-distro

Changed to make cross-distro friendly and fixed typo in chgrp