Added new debug function to Util package and fixed bug in install script