Update automatic deploy script to support new repository design