Add option to 'Rebuild' button to build updated sources

Right now the Rebuild button builds the exact same checkout as another build. This makes it difficult for the following workflow:
 * run a build on a branch
 * it fails, so add a commit on the branch to fix the failure
 * hit "rebuild" -> it builds the original revision