Bug Fixes to Shared Services Scripts for SharePoint2013