updating some scripts to fix a glance install issue