refactored entrypoint into a more flexible run script that can build arbitrary branches