Update the promote script for new repos, add lockfile support