BRANCH 4.1:
  fixed a typo in FileGroupCheckin
  updated the AD logic for better support with auto-discovering domain
BRANCH 4.1:
  updated the upgrade script to fill in the missing sthpw/custom_script