Fix which revision of dependencies are exported

It used to export master, so the exported code for the dependency could
be other than what was being used locally (which lead to issues).