bin/mdw-build: Don't assign `$srcpath' until after `checkout'.