Allow specifying a branch for a module

If a given commit is not included in the master branch, the update script fails.